﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkyFab.Master" AutoEventWireup="true" CodeBehind="CustomerPODetail.aspx.cs" Inherits="Web.CustomerPODetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SubMenuPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:Label ID="FlashMessageLabel" runat="server"></asp:Label>
<h1>Customer PO/CO Detail</h1>

    <div class="span-9">
    <fieldset>
    <legend>Customer Information</legend>
    <p>
    <label>Customer:</label>
    <asp:Label ID="CustomerLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Address:</label>
    <asp:Label ID="AddressLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Zip Code:</label>
    <asp:Label ID="ZipCodeLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Attention:</label>
    <asp:Label ID="AttentionLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Phone:</label>
    <asp:Label ID="PhoneLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Fax:</label>
    <asp:Label ID="FaxLabel" runat="server"></asp:Label>
    </p>
    </fieldset>
    </div>

    <div class="span-9">
    <fieldset>
    <legend>Order Information</legend>
     <p>
    <label>Order Type:</label>
    <asp:Label ID="POTypeLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>PO NO:</label>
    <asp:Label ID="CustomerPONoLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Create Date:</label>
    <asp:Label ID="CreateDateLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Status:</label>
    <asp:Label ID="POStatusLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Quotation No:</label>
    <asp:Label ID="RefereceLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Created By:</label>
    <asp:Label ID="CreatedByLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Approved By:</label>
    <asp:Label ID="ApprovedByLabel" runat="server"></asp:Label>
    </p>

    
    <p>
    <label>Total Qty:</label>
    <asp:Label ID="TotalQtyLabel" runat="server"></asp:Label>
    </p>

    <p>
    <label>Remark:</label>
    <asp:Label ID="RemarkLabel" runat="server"></asp:Label>
    </p>
    </fieldset>
    </div>

    
    <div class="span-18">
    <fieldset>
    <legend>Summary</legend>
        <p class="notice">Summary: This is a <asp:Label ID="SummaryPOTypeLabel" runat="server" /> order. Total open qty is <asp:Label ID="SummaryTotalOpenQtyLabel" runat="server" />.</p>
    </fieldset>
    </div>

    <div class="span-18">
    <fieldset>
    <legend>PO Items</legend>
    <p>
    <asp:GridView ID="CustomerPOitemGridView" runat="server" AutoGenerateColumns="False" 
        CssClass="gridview">
    <Columns>
        <asp:TemplateField HeaderText="No.">
            <ItemTemplate>
                
                <asp:HyperLink ID="ProductNoHyperLink" runat="server" NavigateUrl='<%#"ProductDetail.aspx?id="+Eval("ProductId") %>'><%# Eval("ProductNo") %></asp:HyperLink>
            </ItemTemplate>
           
        </asp:TemplateField>
        <asp:BoundField DataField="Revision" HeaderText="Rev" />
        <asp:BoundField DataField="RequestQty" HeaderText="Requested Qty" />
        <asp:BoundField DataField="CompleteQty" HeaderText="Completed Qty" />
        <asp:BoundField DataField="OpenQty" HeaderText="Open Qty" />
        <asp:BoundField DataField="FormatDate" HeaderText="Requested Date" />
        <asp:BoundField DataField="Price" HeaderText="Price(SGD)" />
        <asp:BoundField DataField="Lot" HeaderText="Lot" />
        <asp:BoundField DataField="Status" HeaderText="Status" />
    </Columns>
    
                    <AlternatingRowStyle BackColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle HorizontalAlign="Center" CssClass="pagerTable" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </p>
    </fieldset>
    </div>

    <div class="span-18">
    <asp:Button ID="EditButton" runat="server" Text="Edit" onclick="EditButton_Click" CssClass="submitButton" />
    <asp:Button ID="DeleteButton" runat="server" Text="Delete" 
        onclick="DeleteButton_Click" CssClass="submitButton"/>
    </div>

</asp:Content>
